package club.dataresources.mapper;

import club.dataresources.entity.Waiter;
import club.dataresources.entity.WaiterExample;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

public interface WaiterMapper {
    long countByExample(WaiterExample example);

    int deleteByExample(WaiterExample example);

    int deleteByPrimaryKey(Integer waiterId);

    int insert(Waiter record);

    int insertSelective(Waiter record);

    Page<Waiter> selectByExample(WaiterExample example);

    Waiter selectByPrimaryKey(Integer waiterId);

    int updateByExampleSelective(@Param("record") Waiter record, @Param("example") WaiterExample example);

    int updateByExample(@Param("record") Waiter record, @Param("example") WaiterExample example);

    int updateByPrimaryKeySelective(Waiter record);

    int updateByPrimaryKey(Waiter record);

    Waiter getRandomWaiter();
}